#include "log.h"
#include "md_thread.h"
#include <string.h>

static t_thread_mutex  g_tlog_mutex;

void log_init(void)
{
    memset(&g_tlog_mutex,0,sizeof(t_thread_mutex));
    md_thread_mutex_init(&g_tlog_mutex,(char*)"log");
}

void logmutex_lock(void)
{
    md_thread_mutex_lock(&g_tlog_mutex);
}

void logmutex_unlock(void)
{
    md_thread_mutex_unlock(&g_tlog_mutex);
}